using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;

namespace Crossborder.Domian
{
    public class BaseEntity
    {
        [Key]
        [Comment("主键Id")]
        public int Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        /// <value></value>
        [Column(TypeName = "dateTime2")]
        [Comment("创建时间")]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        /// <value></value>
        [Column(TypeName = "dateTime2")]
        [Comment("修改时间")]
        public DateTime ModifyDate { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        /// <value></value>
        [Comment("是否启用")]
        public bool IsEnabled { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        /// <value></value>
        [Comment("是否删除")]
        public bool IsDelete { get; set; }
    }
}